package com.coffee.daili.service.dao;

import com.coffee.daili.api.query.DailiMerchantQuery;
import com.coffee.daili.service.bean.DailiMerchant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DailiMerchantDao {
	public DailiMerchant findById(Integer id);
	
	public DailiMerchant findByIdForUpdate(Integer id);
	
	public List<DailiMerchant> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") DailiMerchantQuery param);

	public List<DailiMerchant> page(@Param("param") DailiMerchantQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public List<DailiMerchant> list(@Param("param") DailiMerchantQuery param);

	public DailiMerchant findFirst(@Param("param") DailiMerchantQuery param);

	public Integer insert(DailiMerchant param);

	Integer insertBatch(List<DailiMerchant> list);

	public void updateById(@Param("param") DailiMerchant param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);

	public Double findQuotaByPid(@Param("pidPath") String pidPath);
	
}